{extend name="extra@admin/content"}

{block name="content"}
<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">
    {volist name='list' id='va'}
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">属性</label>
            <div class="layui-input-inline" >
                <input type="text" name="goods_name[]" required="required" placeholder="" autocomplete="off" class="layui-input" value="{$va.name}{if condition="!empty($va.title)"} ({$va.title}) {else /} (无属性) {/if}">
            </div>
            <div class="layui-input-inline" >
            <input name="del_num[]" value='{$va.num|default=""}' required="required" title="审核数"  pattern="^\d+(\.\d+)?$" class="layui-input ">
            </div>
        </div>
        <!-- store_order_goods 主键 -->
        <input type="hidden" name="id[]" value="{$va.id}">
        <!-- 申请数量 -->
        <input type="hidden" name="num[]" value="{$va.num}">
        <!-- 库存 -->
        <input type="hidden" name="stock[]" value="{$va.stock}">
        <!-- 门店id -->
        <input type="hidden" name="store_id[]" value="{$va.store_id}">
        <!-- 类型，1发货，2驳回 -->
        <input type="hidden" name="type[]" value="1">
        <!-- 订单id -->
        <input type="hidden" name="order_id[]" value="{$va.order_id}">
        <!-- 商品id -->
        <input type="hidden" name="goods_id[]" value="{$va.goods_id}">
        <!-- 商品属性id -->
        <input type="hidden" name="goods_spec_id[]" value="{$va.goods_spec_id}">
    </div>
    {/volist}
    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        <input type="hidden" name="orderid" value="{$orderid}">
        <button class="layui-btn" type='submit'>确认发货</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
        <!-- <button class="layui-btn layui-btn-danger" type='button' onclick="prn3_preview()">打印</button> -->
    </div>
    <script>
        window.form.render();
        //打印整个页面 -- 开始
        var LODOP; //声明为全局变量       
        function prn3_preview(){
            LODOP=getLodop();  
            LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_全页");
            LODOP.ADD_PRINT_HTM(0,0,"100%","100%",document.documentElement.innerHTML);
            LODOP.PREVIEW();    
        };   
        //打印整个页面 -- 结束
    </script>
</form>
{/block}


